package org.jeecg.basic.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 产线配置
 * @Author: LiCY
 * @Date: 2023-06-14
 * @Version: V1.0
 */
@Data
@TableName("mes_line_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mes_line_cfg对象", description = "产线配置")
public class MesLineCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 公司
     */
    @Excel(name = "公司", width = 15)
    @ApiModelProperty(value = "公司")
    private String company;
    /**
     * 工厂
     */
    @Excel(name = "工厂", width = 15)
    @ApiModelProperty(value = "工厂")
    private String site;
    /**
     * 车间
     */
    @Excel(name = "车间", width = 15)
    @ApiModelProperty(value = "车间")
    private String workshop;
    /**
     * 产线
     */
    @Excel(name = "产线", width = 15)
    @ApiModelProperty(value = "产线")
    @TableId
    private String line;
    /**
     * 产线所属群组
     */
    @Excel(name = "产线所属群组", width = 15)
    @ApiModelProperty(value = "产线所属群组")
    private String lineGroup;
    /**
     * 运行的工单数量
     */
    @Excel(name = "运行的工单数量", width = 15)
    @ApiModelProperty(value = "运行的工单数量")
    private BigDecimal maxRunningPartno;
    /**
     * 首检样品数量
     */
    @Excel(name = "首检样品数量", width = 15)
    @ApiModelProperty(value = "首检样品数量")
    private BigDecimal boundarySample;

    /**
     * 产线代码
     */
    @Excel(name = "产线代码", width = 15)
    @ApiModelProperty(value = "产线代码")
    private String code;
    /**
     * 产线描述
     */
    @Excel(name = "产线描述", width = 15)
    @ApiModelProperty(value = "产线描述")
    private String name;
    /**
     * 0: init 1:Normal 2:Hold 3:Rest 4:Warning
     */
    @Excel(name = "状态", width = 15, dicCode = "MesLineCfg_status")
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "MesLineCfg_status")
    private String status;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;

    /**
     * 排序
     */
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
    private Integer sequence;
}
